package com.wx.adapter.http.wx.ma.service;

import com.wx.adapter.http.wx.ma.domain.dto.SnsJsCode2sessionDTO;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * wx_back_end
 *
 * @Auther: cheng.tang
 * @Date: 2023/2/12 6:44 PM
 * @Description:
 */
public interface MiniProgramService {

    SnsJsCode2sessionDTO snsJscode2session(
            @RequestParam("appid") String appid,
            @RequestParam("secret") String secret,
            @RequestParam("js_code") String js_code,
            @RequestParam("grant_type") String grant_type);

    SnsJsCode2sessionDTO snsJscode2session(String js_code);

    String getAccessToken();

}
